<template>
  <div class="user-wrapper">
    <div class="user-title">
      <van-button
        class="btn-back"
        icon="arrow-left"
        :to="{ name: 'user' }" />
      {{ $t('User.msg') }}
    </div>
    <van-cell-group>
      <van-cell
        v-for="(item, index) in list"
        :key="index"
        :title="item.title"
        :label="item.label"
        :to="{ name: 'user-msg-detail', query: { id: 1 } }"
        is-link />
    </van-cell-group>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          title: '台词宝 2.0 上线!',
          label: '2020-02-03 13:22:22',
        },
        {
          title: '台词宝 2.0 上线!',
          label: '2020-02-03 13:22:22',
        },
        {
          title: '台词宝 2.0 上线!',
          label: '2020-02-03 13:22:22',
        },
        {
          title: '台词宝 2.0 上线!',
          label: '2020-02-03 13:22:22',
        },
      ]
    };
  },
  create() {

  },
  methods: {

  }
};
</script>

<style lang="less" scoped>
  .van-cell{
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .van-cell__title{
    span{
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
      font-size: @font-size-md;
      color: #333;
    }
  }
</style>
